{%include file="header.html"%}
<form action="{%$formAction%}" method="POST" {%if $is_validator%} onsubmit="return Validator.Validate(this)" {%/if%}>
<table width="100%" border="0" class="adminlist" cellspacing="0">

  <thead>
  <tr>
 	 <th><input id="toggle" type="checkbox" value=""/></th>
    <th>{%$systemLang.mark%}</th>
    <th>{%$systemLang.cnName%}</th>
    <th>{%$systemLang.desc%}</th>
    <th>{%$systemLang.operater%}</th>
  </tr>
  </thead>
  <tbody>
  {%foreach from=$groups item="group" key="a"%}
  <tr class="row0">
   <td><input name="select_id[]" type="checkbox" class="checkbox" id="cb{%$a%}" value="{%$group.group_id%}" /><input name="level" type="hidden"  value="{%$level%}" /></td>
    <td>{%$group.group_name%}&nbsp;</td>
    <td>{%$group.group_value%}&nbsp;</td>
    <td>{%$group.description%}&nbsp;</td>
   	<td>
    <a href="{%$smarty.const.BASEURI%}group/edit/{%$group.group_id%}">{%$systemLang.edit%}</a>&nbsp;
	<a href="{%$smarty.const.BASEURI%}group/delete/{%$group.group_id%}" {%$smarty.const.IS_DELETE%}>{%$systemLang.del%}<a/>
    <a href="{%$smarty.const.BASEURI%}acl/privilege/{%$group.group_id%}" >{%$systemLang.assignPerm%}<a/>
    <a href="{%$smarty.const.BASEURI%}menu/assignmenu/{%$group.group_id%}" >{%$systemLang.configMenu%}<a/>
    </td>
  </tr>
 {%/foreach%}
  </tbody>
  <tfoot>
  <tr>
    <td colspan="5">
    <input type="button"  class="button" value="{%$systemLang.del%}" onclick="select_control('{%$smarty.const.BASEURI%}group/delete','{%$systemLang.confirmDel%}')"/>
    <input type="button"  class="button" value="{%$systemLang.add%}" onclick="button_location('{%$smarty.const.BASEURI%}group/add')" accesskey="N" />
    </td>
  </tr>
  </tfoot>
  
</table>
</form>